package com.zmc.lostfound.common.constant;

/**
 * @author ZMC
 * @description 帖子管理服务常量池
 */
public class PostConstant {

    /**
     * 帖子类型枚举
     */
    public enum PostTypeEnum {

        /**
         * 0: 寻物贴
         */
        LOST(0, "寻物贴"),

        /**
         * 1: 认领贴
         */
        FOUND(1, "认领贴");

        /**
         * 码
         */
        private final Integer code;

        /**
         * 说明
         */
        private final String description;

        PostTypeEnum(Integer code, String description) {
            this.code = code;
            this.description = description;
        }

        public Integer getCode() {
            return code;
        }

        public String getDescription() {
            return description;
        }

    }

    /**
     * 帖子完成状态枚举
     */
    public enum PostCompleteEnum {

        /**
         * 0: 未完成
         */
        NOT_COMPLETE(0, "未完成"),

        /**
         * 1: 已完成
         */
        COMPLETE(1, "已完成");

        /**
         * 码
         */
        private final Integer code;

        /**
         * 说明
         */
        private final String description;

        PostCompleteEnum(Integer code, String description) {
            this.code = code;
            this.description = description;
        }

        public Integer getCode() {
            return code;
        }

        public String getDescription() {
            return description;
        }

    }

    /**
     * 帖子审核状态枚举
     */
    public enum PostReviewEnum {

        /**
         * 0: 未审核
         */
        NOT_REVIEW(0, "未审核"),

        /**
         * 1: 审核未通过
         */
        REVIEW_FAIL(1, "审核未通过"),

        /**
         * 2: 审核已通过
         */
        REVIEW_SUCCESS(2, "审核已通过");

        /**
         * 码
         */
        private final Integer code;

        /**
         * 说明
         */
        private final String description;

        PostReviewEnum(Integer code, String description) {
            this.code = code;
            this.description = description;
        }

        public Integer getCode() {
            return code;
        }

        public String getDescription() {
            return description;
        }

    }

    /**
     * 帖子举报状态枚举
     */
    public enum PostReportEnum {

        /**
         * 0: 未审核
         */
        NOT_REVIEW(0, "未审核"),

        /**
         * 1: 举报失败
         */
        REPORT_FAIL(1, "举报失败"),

        /**
         * 2: 举报成功
         */
        REPORT_SUCCESS(2, "举报成功");

        /**
         * 码
         */
        private final Integer code;

        /**
         * 说明
         */
        private final String description;

        PostReportEnum(Integer code, String description) {
            this.code = code;
            this.description = description;
        }

        public Integer getCode() {
            return code;
        }

        public String getDescription() {
            return description;
        }

    }

}
